<ul class="Navigation">
	<?php foreach ($categories as $key => $c) {?>
	<?php $class = (isset($this->params['named']['g']) && $this->params['named']['g'] == $c['GalleryCategory']['id'])?'first menu-top active':'first menu-top';?>
	<li class="<?php echo $class;?>">
		<?php 
		echo $html->link('<span>'.$c['GalleryCategory']['name'].'</span>', array('plugin'=>false,'controller'=>'pages','action'=>'gallery/g:'.$c['GalleryCategory']['id']),
        array('escape'=>false,'class'=>$class)); 
        ?>
	</li>
	<?php }?>
	
	<?php 
		if($session->check('Auth.User.id')){
		if($session->read('Auth.User.group') == 'admin' || $session->read('Auth.User.group') == 'manag'){
	?>
	<li class="edit">
		<?php echo $html->link(__('+ Dodaj kategorię',true), 
        array('plugin'=>'gallery','controller'=>'gallery','action'=>'add_category'),
        array('escape'=>false,'class'=>'','onclick'=>"return hs.htmlExpand(this, { objectType: 'iframe' } )")); ?>
    </li>
    <?php }}?>
</ul>
